package com.sumainfor.pc.epc.controller.engineering;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.epc.service.DeRepairService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.Serializable;
import java.util.Map;

/**
 * 工程经理  维修工单池
 */
@RestController
@RequestMapping("/engineering/DeRepair")
public class DeRepairController implements Serializable {
    @Autowired
    private DeRepairService deRepairService;

    /**
     * 工程经理指派维修师傅
     */
    @PostMapping("/updateRepair")
    public JsonResult updateRepair(@RequestBody Map<String, Object> params) {
        System.out.println("params:"+params);
        return deRepairService.updateRepair(params);
    }
}
